<div class="admin">
<div class="tab panel dux-box admin-panel">
    <div class="panel-head"><strong>修改活动专题</strong></div>
    <div class="padding border-bottom">
        <a href="{:U('add')}" class="button button-small border-green">管理</a>
        <a href="JavaScript:void(0);" class="button button-small border-green">添加</a>
    </div>
            <div class="fixed-empty"></div>
            <form id="myform" name="myform" method="post" action="">
                <table class="table tb-type2">
                    <tbody>
                        <tr>
                            <td width="10%" class="required"><label class="validation" for="title">专题名称:</label></td>
                            <td width="20%" class="vatop rowform"><input type="text" class="form-control" value="{$topic['title']}" datatype="*" name="title" size="60" /></td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="start_time">开始日期:</label></td>
                            <td class="vatop rowform"><input type="text" class="input input_small" style="float:left;" readonly="readonly" datatype="*" value="{$topic['start_time']|date='Y-m-d H:i:s',###}" id="start_time" name="start_time"><em class="add-on"><i class="icon-calendar"></i></em></td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="voucher_end_date">结束效期:</label></td>
                            <td class="vatop rowform"><input type="text" class="input input_small" style="float:left;" readonly="readonly" datatype="*" value="{$topic['end_time']|date='Y-m-d H:i:s',###}" id="end_time" name="end_time"><em class="add-on"><i class="icon-calendar"></i></em></td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="template">专题模板文件:</label></td>
                            <td class="vatop rowform"><input type="text" class="form-control" name="template" id="template" value="{$topic['template']}" size="60" /></td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="css">专题样式表:</label></td>
                            <td class="vatop rowform"><textarea class="form-control" name="css" id="css" cols="62" rows="3">{$topic['css']}</textarea></td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="base_style">背景颜色:</label></td>
                            <td class="vatop rowform"><input type="text" class="form-control" name="base_style" value="{$topic['base_style']}" id="base_style" size="60" /></td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="pc_img">专题Banner图（PC）:</label></td>
                            <td class="vatop rowform">
                                <!-- 图片上传按钮 -->
                                <a class="button input-file bg-blue" href="javascript:void(0);">+ 浏览文件
                                <input class="fileupload" type="file" name="image" data-name="pc_img" data-num="1">
                                </a>
                                    <!-- 图片展示模块 -->
                                    <div class="files">
                                        <div class="images_zone">
                                            <input type="hidden" name="pc_img" value="{$topic['pc_img']}">
                                                <span>
                                                    <img src="{$topic['pc_img']}!250x250">
                                                </span>
                                                <a href="javascript:;" style="display: none;">删除</a>
                                        </div>
                                    </div>
                                    <div style="clear:both;"></div>
                                    <!-- 图片上传进度条模块 -->
                                    <div class="up_progress"><div class="progress-bar"></div></div>
                            </td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="mb_img">专题Banner图（Mobile）:</label></td>
                            <td class="vatop rowform">
                                <!-- 图片上传按钮 -->
                                <a class="button input-file bg-blue" href="javascript:void(0);">+ 浏览文件
                                <input class="fileupload" type="file" name="image" data-name="mb_img" data-num="1">
                                </a>
                                    <!-- 图片展示模块 -->
                                    <div class="files">
                                        <div class="images_zone">
                                            <input type="hidden" name="mb_img" value="{$topic['mb_img']}">
                                                <span>
                                                    <img src="{$topic['mb_img']}!250x250">
                                                </span>
                                                <a href="javascript:;" style="display: none;">删除</a>
                                        </div>
                                    </div>
                                    <div style="clear:both;"></div>
                                    <!-- 图片上传进度条模块 -->
                                    <div class="up_progress"><div class="progress-bar"></div></div>
                            </td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="keywords">专题关键字:</label></td>
                            <td class="vatop rowform"><input type="text" class="form-control" name="keywords" value="{$topic['keywords']}" id="keywords" size="60" /></td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="description">专题描述:</label></td>
                            <td class="vatop rowform"><textarea class="form-control" name="description" id="description" cols="62" rows="3">{$topic['description']}</textarea></td>
                            <td class="vatop tips"></td>
                        </tr>
                        <tr>
                            <td class="required"><label class="validation" for="intro">专题简介:</label></td>
                            <td class="vatop rowform">
                                <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/ueditor.config.js"></script>
                                <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/ueditor.all.min.js"></script>
                                <script type="text/javascript" charset="utf-8" src="/Public/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
                                <textarea id="editor" type="text/plain" style="width:100%;height:200px;" name="intro" >{$topic['intro']}</textarea>
                                <script>
                                    var ue = UE.getEditor('editor');
                                    UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
                                    UE.Editor.prototype.getActionUrl = function (action) {
                                        if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
                                            return '{:ADMIN_URL}/Admin/ueditor';
                                        } else {
                                            return this._bkGetActionUrl.call(this, action);
                                        }
                                    }
                                </script>
                            </td>
                            <td class="vatop tips"></td>
                        </tr>
                    </tbody>
                    <tfoot>
                        <tr>
                            <td colspan="3">
                                <input type="hidden" name="topic_id" value="{$topic['topic_id']}" />
                                <input type="submit" class="button bg-main" value="提交" />
                            </td>
                        </tr>
                    </tfoot>
                </table>
            </form>
        </div>
		</div>
        <script type="text/javascript">
            $('#myform').layer({});

            $('#start_time').duxTime({
                minDate: 0,
                format: "Y-m-d H:i:s"
            });
            $('#end_time').duxTime({
                minDate: 0,
                format: "Y-m-d H:i:s"
            });
        </script>
<!--F 上传图片-->
<script type="text/javascript" src="__JS__/jquery.uploads.js"></script>
<!--F 上传图片-->